﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace WMSSystem.DYB
{
    /// <summary>
    /// 入库管理
    /// </summary>
    public class Inboundmanagement:AggregateRoot<Guid>
    {
        /// <summary>
        /// 入库编号
        /// </summary>
        [Description("入库编号")]
        [MaxLength(100)]
        public string Code { get; set; }

        /// <summary>
        /// 入库类型
        /// </summary>
        [Description("入库类型")]
        [MaxLength(40)]
        public string Type { get; set; }

        /// <summary>
        /// 状态 1草稿 2待审核 3驳回 4已完成
        /// </summary>
        [Description("状态 1草稿 2待审核 3驳回 4已完成")]
        public int State { get; set; }

        /// <summary>
        /// 入库日期
        /// </summary>
        [Description("入库日期")]
        public DateTime Date { get; set; }

        /// <summary>
        /// 仓库名称(外籍)
        /// </summary>
        [Description("仓库名称(外籍)")]
        public Guid Warehouseid { get; set; }

        /// <summary>
        /// 关联单号(外键)
        /// </summary>
        [Description("关联单号(外键)")]
        public Guid Inventorydetailsid { get; set; }

        /// <summary>
        /// 入库货品
        /// </summary>
        [Description("入库货品")]
        [MaxLength(100)]
        public string Inboundgoods { get; set; }

        /// <summary>
        /// 经办人
        /// </summary>
        [Description("经办人(外键)")]
        [MaxLength(50)]
        public Guid Manager { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        [Description("入库数量")]
        public int? Num { get; set; }

        /// <summary>
        /// 入库金额
        /// </summary>
        [Description("入库金额")]
        public decimal? Price { get; set; }

        /// <summary>
        /// 供应商
        /// </summary>
        [Description("供应商")]
        [MaxLength(100)]
        public string Vendor { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [Description("联系人")]
        [MaxLength(50)]
        public string Contact { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        [Description("联系方式")]
        [MaxLength(30)]
        public string Phone { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Description("备注")]
        public string? Remark { get; set; }
    }
}
